package com.sofa.shark.common.core.exception;


import com.sofa.shark.common.core.constant.CommonConstants;
import com.sofa.shark.common.core.enums.ExceptionEnums;

/**
 * @desc: 业务异常，用于返回给前端的提示信息
 * @author: XZL
 * @createTime: 2019/5/13 14:03
 * @version: v0.0.1
 * @history:
 */
public class BusinessException extends BaseException {


    public BusinessException(String message) {
        super(message, CommonConstants.EX_BUSINESS_CODE);
    }

    public BusinessException(String message,Integer code){
        super(message, code);
    }
    public BusinessException(ExceptionEnums exceptionEnums) {
        super(exceptionEnums);
    }
}
